import request from '@/utils/request'
import type {AjaxResult,page} from "@/utils/request"

const base = '/ai'


/**
 *
 * @param data
 */
export function chatSingle(data? : any) : Promise<AjaxResult>{
    return request({
        url: `${base}/chats`,
        method: 'post',
        data:data
    })
}


/**
 *
 * @param data
 */
export function chatSingleOfStream(data? : any) : Promise<AjaxResult>{
    return request({
        url: `${base}/stream/chats`,
        method: 'post',
        data:data
    })
}

